<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
  
 </body>
 <script>
    var str = "zhiliaotang_bbc";
	var pattern = /B/i;
	console.log("检索字符串中包含字母B："+str.search(pattern));
 </script>
</html>
